package com.dykj.fireFighting.server.base.dev.mapper;

import com.dykj.fireFighting.api.base.dev.entity.DevHisWater;
import com.dykj.fireFighting.common.core.mapper.SuperMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description 消防水系统设备运行记录
 * @Author LIJIANJIE
 * @Date  2021-07-12 15:09:48
 */
public interface DevHisWaterMapper extends SuperMapper<DevHisWater> {

    int getWaterNum(@Param("id") String id);

    int getCurrentWaterNum(@Param("id") String id);

    int getUpWater(@Param("id") String s);

    int getCenterWaterNum(@Param("ids") List<String> ids,@Param("beginTime") String beginTime,@Param("endTime") String endTime);

    int getCenterCurrentWater(@Param("ids") List<String> ids);

    int getCenterUpWater(@Param("ids") List<String> ids);

    DevHisWater getWaterLimit(@Param("relationId") String relationId);

    int getWaterByTime(@Param("id") String id,@Param("beginTime") String beginTime,@Param("endTime") String endTime,@Param("tableName") String tableName);

    void updateByIdTable(DevHisWater devHisWater,String tableName);
}
